<template>
    <van-nav-bar title="我的错题本" left-text="返回" left-arrow @click-left="toback">
        <template #right>
            <van-icon name="search" size="18" @click="tosearch" />
        </template>
    </van-nav-bar>
    <form v-if="sear" action="/">
        <van-search v-model="value" show-action placeholder="请输入搜索关键词" @cancel="onCancel" />
    </form>

    <cuotilist></cuotilist>
</template>

<script setup lang="ts">
import { ref } from "vue";
import type { Ref } from "vue";
import cuotilist from '@/components/cuotilist.vue'

let sear: Ref<boolearn> = ref(false)

function toback() {
    history.back()
}
function tosearch() {
    sear.value = true
}
function onCancel() {
    sear.value = false
}
</script>

<style scoped lang="scss">

</style>